home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / usenet / sources / volume91 / utilitys / star / part01 / Star.c < prev    next >
C/C++ Source or Header  |  1991-03-14  |  569b  |  25 lines

  1. ; /* Star.c - set '*' for wildcard character (for "#?") under DOS 2.0
  2. ;Execute this file as a Shell script, and it will compile and link itself.
  3.  
  4. lc -cwus -O -v -j73 Star
  5. blink from Star.o to Star SmallData SmallCode
  6. quit
  7. */
  8.  
  9. #include <exec/types.h>
  10. #include <dos/dosextens.h>
  11. #include <proto/exec.h>
  12. #include <proto/dos.h>
  13.  
  14. void star(void)
  15. {
  16.     struct DosLibrary *DOSBase;
  17.     struct RootNode *Root;
  18.  
  19.     if (DOSBase = (struct DOSBase *)OpenLibrary("dos.library", 36)) {
  20.         Root = DOSBase->dl_Root;
  21.         Root->rn_Flags |= 1 << 24;
  22.         CloseLibrary((struct Library *)DOSBase);
  23.         }
  24. }
  25.